package demo02;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/10/31 14:59
 */
public class Test {
    public static void main(String[] args) {
        MyRunnable my1 = new MyRunnable();
        Thread thread1 = new Thread(my1);
        thread1.setName("线程1");
        thread1.start();

        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+"==="+i);
        }
    }
}
